package com.hanma.service;

import java.util.List;

import com.hanma.bean.News;

public interface NewsService {
	boolean insert(News news);
	boolean update(News news);
	boolean delete(Integer id);
	News find(Integer id);
	boolean incrementNewsClickCount(Integer id);
	boolean commentClick(Integer id);
	List<News> findAllSearch(String search);
	List<News> findAllOne(Integer cate_id);
	List<News> findAllTwo(Integer se_cate_id);
	List<News> findAllRec();
	List<News> findAllSearch(String search, Integer start, Integer size);
	List<News> findAllOne(Integer cate_id,Integer start, Integer size);
	List<News> findAllTwo(Integer se_cate_id,Integer start, Integer size);
	List<News> findAllRec(Integer start, Integer size);
	List<News> findAllByState();
	List<News> findAllByState(Integer start, Integer size);
}
